package edu.ncsu.csc.itrust.enums;

/**
 * All possible values for Lab Procedure Status in iTrust.
 * @author elmulle2
 *
 */
public enum LabProcedureStatus {
	InTransit("IN TRANSIT"),Received("RECEIVED"),Testing("TESTING"),Pending("PENDING"),Completed("COMPLETED");
	
	private String value;
	
	private LabProcedureStatus(String value){
		this.value = value;
	}
	
	public String getStatus(){
		return value;
	}
	
	@Override
	public String toString(){
		return getStatus();
	}
	
	public LabProcedureStatus parse(String input){
		
		 for(LabProcedureStatus labprocedurestatus : LabProcedureStatus.values()){
			 if(labprocedurestatus.value.equals(input))
				 	return labprocedurestatus;
		 }
		 return null;
		 
	}
}

